using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class EventMangger
{
    public static event Action beforeLoadSceneEvent;
    public static event Action afterLoadSceneEvent=Clear;
    public static event Action<int> updateScoreEvent; 
    
    public static void Clear()
    {
        beforeLoadSceneEvent = null;
        updateScoreEvent=null;
    }
    public static void OnBeforeLoadSceneEvent()
    {
        beforeLoadSceneEvent();
    }
    public static void OnAfterLoadSceneEvent()
    {
        afterLoadSceneEvent();
    }
    public static void OnUpdateScoreEvent(int score)
    {
        updateScoreEvent(score);
    }
}
